#ifndef CVMATCONVERSIONQIMAGE_H
#define CVMATCONVERSIONQIMAGE_H

#include <QImage>
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>

class cvMatConversionQImage
{
public:
    cvMatConversionQImage();
    /**
        实现OpenCV中的Mat类转换为QImage
    **/
    static QImage Mat2QImage(cv::Mat &mat);
    /**
        实现为QImage 转换为 OpenCV中的Mat类
    **/
    static cv::Mat QImage2Mat(QImage &qimg);
};

#endif // CVMATCONVERSIONQIMAGE_H
